package com.donleo.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 日报表
 * </p>
 *
 * @author liangd
 * @since 2020-12-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Daily implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    private String userCode;

    /**
     * 用户名
     */
    private String username;

    /**
     * 标题
     */
    private String title;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dailyTime;

    /**
     * 教练
     */
    private String coach;

    /**
     * 班主任
     */
    private String headMaster;

    /**
     * 学习内容
     */
    private String studyContent;

    /**
     * 收获
     */
    private String harvest;

    /**
     * 不足
     */
    private String shortage;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date commitTime;

    /**
     * 是否可用
     */
    private String dataEnable;

    /**
     * 状态(草稿、已提交、已查看)
     */
    private String status;
}
